home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
L' Effet Pommier 3
/
L'Effet Pommier - Volume 03.iso
/
Programmation
/
Alpha ƒ
/
Tcl
/
ElectricAlias
/
Aliases
/
aliases.Awk
< prev
next >
Wrap
Text File
|
1994-06-18
|
2KB
|
36 lines
# FILE: aliases.Awk
#
# DESC: Aliases for Awk mode
#
# LAST UPDATE: 01/06/93 5:32:02 AM
electricAlias-def ÑAwk ÑAwk ÑAwk
electricAlias-var Awk bb "\{"
electricAlias-var Awk eb "\}"
electricAlias-var Awk bc "#"
electricAlias-var Awk ec ""
electricAlias-def ÑAwk #! "ñ╟askalias {File name} NAME╚#! /bin/nawk -f\r#\r# ñ{NAME}Ñ\r\rÑ"
electricAlias-def ÑAwk BEGIN "BEGIN \{\r\tÑ\r\}ñ{bc}end BEGINñ{ec}Ñ"
electricAlias-def ÑAwk END "END \{\r\tÑ\r\}ñ{bc}end ENDñ{ec}Ñ"
electricAlias-def ÑAwk function "ñ╟askalias {function name} NAME╚ñ{sep}function ñ{NAME}(Ñ) \{\r\tÑ\r\}ñ{bc}endfunction ñ{NAME}ñ{ec}\r\rÑ"
electricAlias-def ÑAwk \{ "\{\r\tÑ\r\}Ñ"
electricAlias-def ÑAwk do "do \{\r\tÑ\r\} while (Ñ);Ñ"
electricAlias-def ÑAwk for "for (Ñ;Ñ;Ñ) \{\r\tÑ\r\}ñ{bc}endforñ{ec}Ñ"
electricAlias-def ÑAwk foreach "for (Ñ in Ñ) \{\r\tÑ\r\}ñ{bc}endforeachñ{ec}Ñ"
electricAlias-def ÑAwk while "while (Ñ) \{\r\tÑ\r\}ñ{bc}endwhileñ{ec}Ñ"
electricAlias-def ÑAwk if "if (Ñ) \{\r\tÑ\r\}ñ{bc}endifñ{ec}Ñ"
electricAlias-def ÑAwk elseif "\b\} else if (Ñ) \{\rÑ"
electricAlias-def ÑAwk else "\b\} else \{\rÑ"
electricAlias-def ÑAwk forever "while (1) \{ ñ{bc}foreverñ{ec}\r\tÑ\r\}ñ{bc}endforeverñ{ec}Ñ"
electricAlias-def ÑAwk readfile "ñ╟askalias {File name} NAME╚lastno = Complete(LineCount(ñ{NAME}_path),0);
ñ{NAME}_file = fopen(ñ{NAME}_path,\"r\");
while (1) {
line = fgetline(ñ{NAME}_file);
if (feof(ñ{NAME}_file)) break;
Complete(++lineno,lastno);
Ñ
}#endwhile 1
fclose(ñ{NAME}_file);Ñ"
# electricAlias-def Awk "=" "ñ╟askalias \"Assignment or test?\" eq {=} Insert {==} {=}╚ñ{eq}"